using KrasDD.Models;
using KrasDD.Services.Interfaces;
using Microsoft.AspNetCore.Mvc;

namespace KrasDD.Controllers
{
    [ApiController]
    [Route("api/[controller]")]
    public class TeamController : BaseController<TEAM>
    {
        private readonly ITeamService _teamService;

        public TeamController(IBaseService<TEAM> service, ITeamService teamService) : base(service)
        {
            _teamService = teamService;
        }

        [HttpGet("{id}/team-identities")]
        public async Task<List<TEAM_IDENTITY>> GetTeamIdentities(string id)
        {
            return await _teamService.GetTeamIdentitiesAsync(id);
        }
    }
}
